/*
 Navicat Premium Data Transfer

 Source Server         : 172.16.39.2
 Source Server Type    : MySQL
 Source Server Version : 50735
 Source Host           : 172.16.39.2:3306
 Source Schema         : guns-excel

 Target Server Type    : MySQL
 Target Server Version : 50735
 File Encoding         : 65001

 Date: 27/11/2021 11:23:21
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for model
-- ----------------------------
DROP TABLE IF EXISTS `model`;
CREATE TABLE `model` (
  `id` varchar(20) NOT NULL,
  `model_name` varchar(255) DEFAULT NULL COMMENT '模型名称',
  `table_name` varchar(255) DEFAULT NULL COMMENT '表名',
  `table_schema` varchar(255) DEFAULT NULL COMMENT '库名',
  `sort` bigint(20) DEFAULT NULL COMMENT '排序',
  `parent_id` bigint(20) DEFAULT NULL COMMENT '父id',
  `created_on` datetime DEFAULT NULL COMMENT '创建时间',
  `created_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  `modified_on` datetime DEFAULT NULL COMMENT '更新时间',
  `modified_by` varchar(255) DEFAULT NULL COMMENT '修改者',
  `deleted_on` datetime DEFAULT NULL COMMENT '删除时间',
  `deleted_by` varchar(255) DEFAULT NULL COMMENT '删除者',
  `is_del` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识符 0: 未删除 1: 已删除',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------
-- Records of model
-- ----------------------------
BEGIN;
INSERT INTO `model` VALUES ('250058572359012352', 'test4', 'model1', 'guns-excel', 1, 0, '2021-11-21 08:43:30', '', NULL, '', NULL, '', 0);
COMMIT;

-- ----------------------------
-- Table structure for model1
-- ----------------------------
DROP TABLE IF EXISTS `model1`;
CREATE TABLE `model1` (
  `id` varchar(20) NOT NULL,
  `name` varchar(255) DEFAULT NULL COMMENT '测试',
  `age` varchar(255) DEFAULT NULL,
  `create_time` varchar(255) DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------
-- Records of model1
-- ----------------------------
BEGIN;
INSERT INTO `model1` VALUES ('250289272744054784', '83224.1999999999', '437.399999999998', NULL);
INSERT INTO `model1` VALUES ('250448763762511872', '83224.1999999999', '437.399999999998', NULL);
INSERT INTO `model1` VALUES ('250450512183300096', '83224.1999999999', '437.399999999998', '2021.11.22 10:40:55');
INSERT INTO `model1` VALUES ('252260267121971200', '83224.1999999999', '437.399999999998', '2021.11.27 10:32:14');
INSERT INTO `model1` VALUES ('252263288790847488', '83224.1999999999', '437.399999999998', '2021.11.27 10:44:14');
INSERT INTO `model1` VALUES ('252268117382664192', '83224.1999999999', '437.399999999998', '2021.11.27 11:03:26');
COMMIT;

-- ----------------------------
-- Table structure for model_excel
-- ----------------------------
DROP TABLE IF EXISTS `model_excel`;
CREATE TABLE `model_excel` (
  `id` varchar(20) NOT NULL,
  `model_id` varchar(20) NOT NULL,
  `model_field` varchar(255) NOT NULL COMMENT '模型表对应的字段',
  `created_on` datetime DEFAULT NULL COMMENT '创建时间',
  `created_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  `modified_on` datetime DEFAULT NULL COMMENT '更新时间',
  `modified_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  `deleted_on` datetime DEFAULT NULL COMMENT '删除时间',
  `deleted_by` varchar(255) DEFAULT NULL COMMENT '删除者',
  `is_del` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除标识符 0: 未删除 1: 已删除',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------
-- Records of model_excel
-- ----------------------------
BEGIN;
INSERT INTO `model_excel` VALUES ('250076360238698496', '250058572359012352', 'name', '2021-11-21 09:54:10', '', NULL, '', NULL, '', 0);
INSERT INTO `model_excel` VALUES ('250076471773630464', '250058572359012352', 'age', '2021-11-21 09:54:37', '', NULL, '', NULL, '', 0);
COMMIT;

-- ----------------------------
-- Table structure for rule
-- ----------------------------
DROP TABLE IF EXISTS `rule`;
CREATE TABLE `rule` (
  `id` varchar(20) NOT NULL,
  `model_excel_id` varchar(20) NOT NULL,
  `rule_name` varchar(255) NOT NULL COMMENT '规则名称',
  `rule_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '迭代规则，行迭代还是列迭代： 1：行迭代',
  `start_cell` varchar(255) NOT NULL COMMENT '开始单元格',
  `max_end_cell` varchar(255) NOT NULL COMMENT '最后结束单元格',
  `base_num` int(11) NOT NULL DEFAULT '0' COMMENT '迭代基数，默认为0，说明是静态的，不迭代',
  `created_on` datetime DEFAULT NULL COMMENT '创建时间',
  `created_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  `modified_on` datetime DEFAULT NULL COMMENT '更新时间',
  `modified_by` varchar(255) DEFAULT NULL COMMENT '修改者',
  `deleted_on` datetime DEFAULT NULL COMMENT '删除时间',
  `deleted_by` varchar(255) DEFAULT NULL COMMENT '删除者',
  `is_del` tinyint(4) DEFAULT NULL COMMENT '删除标识符 0: 未删除 1: 已删除',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='一个迭代规则对应一个指标表的一个字段';

-- ----------------------------
-- Records of rule
-- ----------------------------
BEGIN;
INSERT INTO `rule` VALUES ('250208020712132608', '250076360238698496', '模型名称', 0, 'D8', 'D37', 0, '2021-11-21 18:37:21', '', NULL, '', NULL, '', 0);
INSERT INTO `rule` VALUES ('250233636450734080', '250076471773630464', '规则名称1', 0, 'E8', 'E37', 0, '2021-11-21 20:19:08', '', NULL, '', NULL, '', 0);
COMMIT;

-- ----------------------------
-- Table structure for timed_task
-- ----------------------------
DROP TABLE IF EXISTS `timed_task`;
CREATE TABLE `timed_task` (
  `id` varchar(20) NOT NULL,
  `job_id` int(11) DEFAULT NULL COMMENT '定时任务di',
  `job_name` varchar(255) DEFAULT NULL COMMENT '定时任务名称',
  `job_cron` varchar(255) DEFAULT NULL COMMENT '任务表达式',
  `func_name` varchar(255) DEFAULT NULL COMMENT '方法名称',
  `is_start` tinyint(4) DEFAULT '0' COMMENT '是否启动 0: 未启动 1: 已启动',
  `created_on` datetime DEFAULT NULL COMMENT '创建时间',
  `created_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  `modified_on` datetime DEFAULT NULL COMMENT '更新时间',
  `modified_by` varchar(255) DEFAULT NULL COMMENT '更新者',
  `deleted_on` datetime DEFAULT NULL COMMENT '删除时间',
  `deleted_by` varchar(255) DEFAULT NULL COMMENT '删除者',
  `is_del` tinyint(4) DEFAULT '0' COMMENT '删除标识符 0: 未删除 1: 已删除',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------
-- Records of timed_task
-- ----------------------------
BEGIN;
INSERT INTO `timed_task` VALUES ('250568822820442112', 1, '任务名称1', '0/1 * * * * ?', 'Task1', 1, '2021-11-22 18:31:03', '', '2021-11-27 10:57:48', '', NULL, '', 0);
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
